package com.hst.web.sys.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import com.hst.core.annotation.Comment;
import com.hst.core.annotation.ResponseModel;
import com.hst.core.dao.BaseEntity;

/**
 * 
 * @author wangyh
 *
 */
@Entity
@Table(name = "sys_role")
@Comment("角色表")
@ResponseModel
public class TRole extends BaseEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	@Column(length = 10)
	@GeneratedValue(generator = "hsid")
	@GenericGenerator(name = "hsid", strategy = "com.hst.core.hbm.HSIDGenerator")
	@Comment("角色Id")
	private String id;

	@Comment("角色名称")
	@Column(length = 30, name = "name")
	private String name;
	
	@Comment("角色等级")
	@Column(length = 10, name = "role_level")
	private String roleLevel;

	public String getRoleLevel() {
		return roleLevel;
	}

	public void setRoleLevel(String roleLevel) {
		this.roleLevel = roleLevel;
	}

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	public TRole() {
		super();
	}

	public TRole(String id, String name) {
		super();
		this.id = id;
		this.name = name;
	}
}
